//
//  PersistanceManager.h
//  Beautician
//
//  Created by wangjiayu on 4/16/15.
//  Copyright (c) 2015 XuShi Technology Co.,Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface PersistanceManager : NSObject

+ (void)saveObject:(id)object identifier:(NSString *)identifier;
+ (void)removeObjectWithIdentifier:(NSString *)identifier;
+ (id)fetchObjectWithIdentifier:(NSString *)identifier;

///程序重新启动，加载cookie
+ (void)loadCookie;
+ (NSDictionary *)cookieParam;
//保存一个当前用户的值
+ (void)setUserValue:(NSString *)value key:(NSString *)key;
//取一个当前用户的值
+ (NSString *)getUserValue:(NSString *)key;

+ (void)saveCookieWithURL:(NSURL *)url;

+ (void)deleteRequestCookie;

@end
